home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
p_man
/
cat3
/
Xm
/
XmStringUnparse.z
/
XmStringUnparse
Wrap
Text File
|
1998-10-30
|
8KB
|
133 lines
XXXXmmmmSSSSttttrrrriiiinnnnggggUUUUnnnnppppaaaarrrrsssseeee((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSttttrrrriiiinnnnggggUUUUnnnnppppaaaarrrrsssseeee((((3333XXXX))))
NNNNAAAAMMMMEEEE
XXXXmmmmSSSSttttrrrriiiinnnnggggUUUUnnnnppppaaaarrrrsssseeee - A compound string function that unparses
text
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
#include <Xm/Xm.h>
XXXXttttPPPPooooiiiinnnntttteeeerrrr XXXXmmmmSSSSttttrrrriiiinnnnggggUUUUnnnnppppaaaarrrrsssseeee(
XXXXmmmmSSSSttttrrrriiiinnnngggg ssssttttrrrriiiinnnngggg,
XXXXmmmmSSSSttttrrrriiiinnnnggggTTTTaaaagggg ttttaaaagggg,
XXXXmmmmTTTTeeeexxxxttttTTTTyyyyppppeeee ttttaaaagggg____ttttyyyyppppeeee,
XXXXmmmmTTTTeeeexxxxttttTTTTyyyyppppeeee oooouuuuttttppppuuuutttt____ttttyyyyppppeeee,
XXXXmmmmPPPPaaaarrrrsssseeeeTTTTaaaabbbblllleeee ppppaaaarrrrsssseeee____ttttaaaabbbblllleeee,
CCCCaaaarrrrddddiiiinnnnaaaallll ppppaaaarrrrsssseeee____ccccoooouuuunnnntttt,
XXXXmmmmPPPPaaaarrrrsssseeeeMMMMooooddddeeeellll ppppaaaarrrrsssseeee____mmmmooooddddeeeellll);
VVVVEEEERRRRSSSSIIIIOOOONNNN
This page documents Motif 2.1.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
XXXXmmmmSSSSttttrrrriiiinnnnggggUUUUnnnnppppaaaarrrrsssseeee looks in the input _s_t_r_i_n_g for text segments
that are tagged with locale or charset tags that match _t_a_g.
The _t_a_g__t_y_p_eparameter specifies whether the tag is a locale
or charset type. If _t_a_g has a value of NULL, all the
segments are matched. When a text segment is found with a
matching tag, it is added to the end of a resulting string.
The characters in the resulting string are of type
_o_u_t_p_u_t__t_y_p_e.
XXXXmmmmSSSSttttrrrriiiinnnnggggUUUUnnnnppppaaaarrrrsssseeee also checks _s_t_r_i_n_g for components that match
components in _p_a_r_s_e__t_a_b_l_e, and also to see if the component
matches the condition specified by _p_a_r_s_e__m_o_d_e_l. If the
string component matches in both checks, then the associated
character is added to the end of the resulting string.
_s_t_r_i_n_g Specifies the XXXXmmmmSSSSttttrrrriiiinnnngggg to be converted.
_t_a_g Specifies the tag to be used in matching with text
segments. Only text segments that match _t_a_g will
be included in the resulting string. If _t_a_g has a
value of NULL, all segments are considered as
matches, and _t_a_g__t_y_p_e is ignored.
_t_a_g__t_y_p_e Specifies the type of tag to be searched for,
including XXXXmmmmMMMMUUUULLLLTTTTIIIIBBBBYYYYTTTTEEEE____TTTTEEEEXXXXTTTT, XXXXmmmmWWWWIIIIDDDDEEEECCCCHHHHAAAARRRR____TTTTEEEEXXXXTTTT, and
XXXXmmmmCCCCHHHHAAAARRRRSSSSEEEETTTT____TTTTEEEEXXXXTTTT.
_o_u_t_p_u_t__t_y_p_e
Specifies the type of text to be returned in the
string, including XXXXmmmmMMMMUUUULLLLTTTTIIIIBBBBYYYYTTTTEEEE____TTTTEEEEXXXXTTTT,
XXXXmmmmWWWWIIIIDDDDEEEECCCCHHHHAAAARRRR____TTTTEEEEXXXXTTTT, and XXXXmmmmCCCCHHHHAAAARRRRSSSSEEEETTTT____TTTTEEEEXXXXTTTT.
_p_a_r_s_e__t_a_b_l_e
Page 1 (printed 10/24/98)
XXXXmmmmSSSSttttrrrriiiinnnnggggUUUUnnnnppppaaaarrrrsssseeee((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmSSSSttttrrrriiiinnnnggggUUUUnnnnppppaaaarrrrsssseeee((((3333XXXX))))
Specifies the parse table to be used in scanning
for compound string components to be converted to
other characters.
_p_a_r_s_e__c_o_u_n_t
Specifies how many entries are in _p_a_r_s_e__t_a_b_l_e.
_p_a_r_s_e__m_o_d_e_l
Specifies which non-text components to be
considered in matching in _p_a_r_s_e__t_a_b_l_e. These
include:
XXXXmmmmOOOOUUUUTTTTPPPPUUUUTTTT____AAAALLLLLLLL
Puts out all matching components.
XXXXmmmmOOOOUUUUTTTTPPPPUUUUTTTT____BBBBEEEETTTTWWWWEEEEEEEENNNN
Puts out only those matching components
that are between two matching text
components.
XXXXmmmmOOOOUUUUTTTTPPPPUUUUTTTT____BBBBEEEEGGGGIIIINNNNNNNNIIIINNNNGGGG
Puts out only those matching components
that are at the beginning of a matching
text component.
XXXXmmmmOOOOUUUUTTTTPPPPUUUUTTTT____EEEENNNNDDDD
Puts out only those matching components
that are at the end of a matching text
component.
XXXXmmmmOOOOUUUUTTTTPPPPUUUUTTTT____BBBBOOOOTTTTHHHH
Puts out only those matching components
that are at the beginning or end of a
matching text component.
RRRREEEETTTTUUUURRRRNNNN
Returns a newly allocated string containing characters of a
type determined by _o_u_t_p_u_t__t_y_p_e. The application is
responsible for managing this allocated space. The
application can recover this allocated space by calling
XXXXttttFFFFrrrreeeeeeee.
RRRREEEELLLLAAAATTTTEEEEDDDD
XXXXmmmmSSSSttttrrrriiiinnnngggg(3), XXXXmmmmPPPPaaaarrrrsssseeeeTTTTaaaabbbblllleeee(3), XXXXmmmmPPPPaaaarrrrsssseeeeMMMMaaaappppppppiiiinnnngggg(3).
Page 2 (printed 10/24/98)